package com.sservice.service.service;

import com.sservice.model.entity.Address;

import java.util.List;

/**
 * Created by suweiming on 2017/12/20.
 */

public interface AddressService {
    /***
     *  设为默认地址
     * @param address
     * @return
     */
    int setDefault(Address address);

    int insert(Address address);

    int update(Address address);

    Address findById(int id);

    int remove(int id);

    /**
     * 地址列表接口
     *
     * @param address
     * @return
     */
    List<Address> list(Address address);

    /***
     *  设为发票地址
     * @param address
     * @return
     */
    int setPaper(Address address);

    /**
     * 设为收货地址
     *
     * @param address
     * @return
     */
    int setReceive(Address address);
}
